<%@ page contentType="text/html;charset=utf-8"  language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<jsp:include page="../header.jsp" />
<jsp:include page="../navbar.jsp" />

<link href="../public/css/login.css" rel="stylesheet">

<div class="login-screen">
  <form class="login-form" id="login-form" role="form" onsubmit="return user_login.onSubmit()">
    <div class="form-group">
      <input type="text" class="form-control login-field"  id="login-name" name="username" placeholder="用户名">
      <label class="login-field-icon fui-user" for="login-name"></label>
    </div>

    <div class="form-group">
      <input type="password" class="form-control login-field" id="login-pass" name="password" placeholder="密码">
      <label class="login-field-icon fui-lock" for="login-pass"></label>
    </div>
    <h2 style="color: #F00; font-size: 15px" id="login-alert" style="display:none;"></h2>
    <button class="btn btn-primary btn-lg btn-block" id="login-submit" data-loading-text="登录中…" type="submit">登录</button>
  </form>
</div>

<script>
  document.title = "用户登录";
  var user_login;
  $(function(){
    user_login = User_Login.create();
    user_login.submitUrl = "<c:url value="/user/doLogin.do"/>";
    user_login.successUrl = "<c:url value="/home/index.do"/>";
  });
</script>

<jsp:include page="../footer.jsp" />
